<include file="../Public/header" />
<script data-main="__PUBLIC__/admin/js/page/cms/block/contentlist" src="__PUBLIC__/admin/js/lib/requirejs/require.js"></script>
</head>

<body>
  <div class="page">
    <div class="page-hd">
      <h1>区块{$daohang}</h1>
    </div>

    <div class="datas">
      <div class="datas-hd">
        <div class="actions">
          <a class="btn" href="{:URL('cms/Block/addblock_content',array('id'=>$id,'type'=>$type,'tid'=>$tid, 'cid'=>$cid))}" />添加内容</a>
          <a class="btn" href="{:URL('cms/Block/ajax_show',array('id'=>$cid,'type'=>'classify'))}" />返回</a>
        </div>
      </div>

      <div class="datas-bd">
        <table class="table">
          <thead>
            <tr>
              <th style="width:30px">ID</th>
              <th style="">文章标题</th>
              <!-- <th style="">缩略图</th> -->
              <th style="">阅读量</th>
              <th style="">创建人</th>
              <th style="">最后修改时间</th>
              <th style="">审核状态</th>
              <th style="">操作</th>
            </tr>
          </thead>
          <tbody>
            <input type="hidden" name="id" id="id" value="{$id}">
            <volist name="list" id="vo">
              <tr data-id="{$vo['id']}">
                <td>{$vo['id']}</td>
                <td class="align-left">
                  <a href="{:URL('cms/Article/addcontent',array('id'=>$vo['id'],'type'=>$vo['classid'],'sid'=>$sid, 'callback' => array('id'=>$id, 'type'=> 'block', 'back'=>'block', 'cid' => $cid)))}">
                    <if condition="$vo['is_color'] eq '1'">
                      <font color="red">{$vo['title']}</font>
                      <else/>{$vo['title']}
                    </if>
                  </a>
                  <neq name="vo.imageurl" value="">
                    <img src="./apps/cms/Appinfo/img.gif">
                  </neq>
                  <eq name="vo.is_recommend" value="1">
                    <img src="./apps/cms/Appinfo/recommend.gif">
                  </eq>
                  <eq name="vo.is_top" value="1">
                    <img src="./apps/cms/Appinfo/top.gif">
                  </eq>
                  <eq name="vo.is_hot" value="1">
                    <img src="./apps/cms/Appinfo/hot.gif">
                  </eq>
                </td>
                <!--                 <td class="align-left">
                  <neq name="vo.imageurl" value="">
                    <img showbigimage="true" style="max-height: 80px;max-width: 120px" class="maxHeight" src="{$vo['imageurl']}">
                  </neq>
                </td> -->
                <td class="align-left">{$vo['readpoint']}</td>
                <td class="align-left">{$vo['create_uname']}</td>
                <td class="align-left">{$vo['updatetime']|date="Y-m-d H:i",###}</td>
                <td class="align-left">
                  <if condition="$vo['status'] eq '0'">
                    草稿
                    <else/>终稿
                  </if>
                </td>
                <td><a href="javascript:;" class="A_del">删除</a>
                </td>
              </tr>
            </volist>
          </tbody>
        </table>
      </div>
      <div class="dats-ft">
        <div class="pager">{$page}</div>
      </div>
    </div>
  </div>
</body>

</html>
